<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page pageEncoding="UTF-8" %>
<!doctype html>
<html lang="zh-cmn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title></title>


    <%@include file="/WEB-INF/jsp/comm/head.jsp"%>

</head>
<body>

         <div class="panel panel-default">
             <div class="panel-body">
                 <form class="form-inline">
                     <div class="form-group col-md-4">
                         <label>承运商手机: </label>
                         <input type="text" name="mobile" class="form-control"/>
                     </div>
                     <div class="form-group col-md-4">
                         <label> 承运商名称: </label>
                         <input type="text" name="name" class="form-control" />
                     </div>
                     <div class="form-group col-md-3">
                         <label>所在地: </label>
                         <input type="text" name="address" class="form-control" />
                     </div>
                    <div class="form-group">
                        <button type="button" class="btn btn-primary" onclick="search()">
                          查询
                        </button>
                    </div>
                 </form>
             </div>
         </div>

        <div class="panel panel-default">
            <div class="panel-body">
                <div class="form-inline">
                    <div class="form-group">
                        <button type="button" class="btn btn-default" onclick="opedAddCys()">
                            <i class="glyphicon glyphicon-plus"></i>
                           新增承运商
                        </button>
                    </div>
                    <div class="form-group">
                        <button type="button" class="btn btn-default">
                            <a href="cys/group/index" style="text-decoration: none; color:black">编辑分组</a>
                        </button>
                    </div>

                </div>
            </div>

            <table id="cys"
                   data-toggle="table"
        data-url="${ctx}/cys/cys/list"
        data-striped="true"
        >
            <thead style="background: #e3e3e3">
                <tr>
                    <th data-field="name" class="text-center">承运商名称</th>
                    <th data-field="mobile" class="text-center">承运商手机</th>
                    <th data-field="address" class="text-center">所在地</th>
                    <th data-field="group.groupName" class="text-center">分组</th>
                    <th data-field="bz" class="text-center">备注</th>
                    <th class="text-center" data-formatter="">操作</th>
                </tr>
            </thead>
        </table>

            <div id="addCys">
                <form class="form-horizontal" method="post">
                <div class="form-group">
                    <label class="col-md-5 control-label">承运商名称:</label>
                    <div class="col-md-4">
                        <input type="text" class="form-control" name="name"/>
                    </div>
                </div>
                    <div class="form-group">
                        <label class="col-md-5 control-label">联系电话:</label>
                        <div class="col-md-4">
                            <input type="text" class="form-control" name="mobile"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-5 control-label">所在地:</label>
                        <div class="col-md-4">
                            <input type="text" class="form-control" name="address"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-5 control-label">分组:</label>
                        <div class="col-md-4">
                            <select class="" style="margin-top: 7px;" name="groupId">
                                <option value="0">--请选择--</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-5 control-label">备注:</label>
                        <div class="col-md-4">
                          <textarea cols="21" rows="5" style="resize: none" name="bz"></textarea>
                        </div>
                    </div>
                </form>
            </div>
        </div>
</body>

<%@include file="/WEB-INF/jsp/comm/foot.jsp"%>

</html>
